package com.yixuan.mt.common.service;

import com.yixuan.mt.common.entity.EventsMysql;
import com.yixuan.mt.common.entity.EventsRedis;
import com.yixuan.mt.common.pojo.EventsListInfo;
import com.yixuan.mt.common.request.EventsMysqlRequest;
import com.yixuan.mt.common.request.EventsRedisRequest;

import java.sql.SQLException;
import java.util.List;

public interface EventsService {
    void postMysqlEvents(EventsMysqlRequest eventsMysqlRequest) throws SQLException;

    void postRedisEvents(EventsRedisRequest eventsRedisRequest);

    void deleteEvents(String type, String name);

    List<EventsListInfo> getEventsList() throws SQLException;

    List<EventsMysql> getMysqlEvents();

    List<EventsRedis> getRedisEvents();
}
